package top.hepingan.cloudorder.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import top.hepingan.cloudcommon.msg.Result;

@FeignClient(name = "cloud-system")
public interface AuthServiceFeign {

    /**
     * 获取当前用户信息
     * Result<User>
     */
    @GetMapping(value = "/auth/detail")
    Result getLoginUserDetail(@RequestParam Integer userId);
}
